import { reactive } from "vue";
export default function useDialog(){
    const dialog = reactive({
        title:'新增',
        visible:false,
        width:630,
        height:280
    });
    const onClose =()=>{
      dialog.visible=false
    };
    const onConfirm = ()=>{
      dialog.visible=false
    };
    const onShow =()=>{
        dialog.visible = true;
    }
    return{
        dialog,
        onClose,
        onConfirm,
        onShow
    }
}